<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header"); ?>




         <!-- Content Start -->
         <div id="main">
            <!-- Title, Breadcrumb Start-->
            <div class="breadcrumb-wrapper">
               <div class="container">
                  <div class="row">
                     <div class="col-lg-6 col-md-6 col-xs-12 col-sm-6">
                        <h2 class="title">新闻动态</h2>
                     </div>
                     <div class="col-lg-6 col-md-6 col-xs-12 col-sm-6">
                        <div class="breadcrumbs pull-right">
                           <ul>
                              <li>当前位置：</li> 
                              <li><a href="<?php echo siteurl($siteid);?>">首页</a></li>  >  
							  <?php echo catpos($catid);?>
                           </ul>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
            <!-- Title, Breadcrumb End-->
            <!-- Main Content start-->
            <div class="content">
               <div class="container">
                  <div class="row">
                     <div class="sidebar col-lg-3 col-md-3 col-sm-4 col-xs-12">

                        <!-- Search Widget Start -->
                        <!--<div class="widget search-form">
                           <div class="input-group">
                              <input type="text" value="Search..." onfocus="if(this.value=='Search...')this.value='';" onblur="if(this.value=='')this.value='Search...';" class="search-input form-control">
                              <span class="input-group-btn">
                              <button type="submit" class="subscribe-btn btn"><i class="icon-search"></i></button>
                              </span>
                           </div>
                        </div>-->
                        <!-- Search Widget End -->

                        <!-- Category Widget Start -->
                        <div class="widget category">
                           <h3 class="title">新闻列表</h3>
                           <ul class="category-list slide">
 <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=3540128122b25c7d10643b92c5eaf458&action=category&catid=8&order=listorder+ASC&thumb=1&num=5\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$data = $content_tag->category(array('catid'=>'8','order'=>'listorder ASC','thumb'=>'1','limit'=>'5',));}?>
 <?php $n=1; if(is_array($data)) foreach($data AS $k => $v) { ?>
 
                              <li><a href="<?php echo $v['url'];?>"><?php echo $v['catname'];?></a></li>
<?php $n++;}unset($n); ?>
<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
       
                           </ul>
                        </div>
                        <!-- Category Widget End -->
                     </div>
                     <!-- Sidebar End -->   
                      
                      
                                   
                     <div class="posts-block col-lg-9 col-md-9 col-sm-8 col-xs-12">
<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=e2175801b866a5baf4ff8eee9ea33d79&action=lists&catid=%24catid&num=1&siteid=%24siteid&order=listorder+ASC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 1;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>$catid,'siteid'=>$siteid,'order'=>'listorder ASC','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, $urlrule);$data = $content_tag->lists(array('catid'=>$catid,'siteid'=>$siteid,'order'=>'listorder ASC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>

<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
                        <article class="post hentry">
                           <div class="post-image">
                              <a href="<?php echo $r['thumb'];?>" data-rel="prettyPhoto">
                              <span class="img-hover"></span>
                              <span class="fullscreen"><i class="icon-search"></i></span>
                              <img src="<?php echo $r['thumb'];?>" alt="<?php echo $r['title'];?>">
                              </a>
                           </div>
                           <header class="post-header">
                              <h3 class="content-title"><?php echo $r['title'];?></h3>
                           </header>
                           <div class="post-content">
                              <p>
                                 <?php echo $r['description'];?>
                              </p>
                           </div>
                           <footer class="post-footer">
                              <a href="<?php echo $r['url'];?>" class="btn-small btn-color">更多</a>
                           </footer>
                        </article>
<?php $n++;}unset($n); ?>

						
						
						
                        <div class="blog-divider"></div>
                        <div class="pagination-centered">
                           <ul class="pagination">
							 <?php echo $pages;?>
                      <!--        <li class="disabled"><a href="#">第一页</a></li>
                              <li class="disabled"><a href="#">上一页</a></li>
                              <li class="active"><a href="#">1</a></li>
                              <li><a href="#">2</a></li>
                              <li><a href="#">3</a></li>
                              <li><a href="#">4</a></li>
                              <li><a href="#">5</a></li>
                              <li><a href="#">下一页</a></li>
                              <li><a href="#">最后一页</a></li>                  -->
                           </ul>
                        </div>
<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
                     </div>
                  </div>
               </div>
            </div>
            <!-- Main Content end-->
         </div>
         <!-- Content End -->
         

      <!-- The Scripts -->
      <script src="<?php echo JS_PATH;?>ting_en/js/jquery.min.js"></script>
      <script src="<?php echo JS_PATH;?>ting_en/js/bootstrap.js"></script>
      <script src="<?php echo JS_PATH;?>ting_en/js/jquery.parallax.js"></script> 
      <script src="<?php echo JS_PATH;?>ting_en/js/modernizr-2.6.2.min.js"></script> 
      <script src="<?php echo JS_PATH;?>ting_en/js/revolution-slider/js/jquery.themepunch.revolution.min.js"></script>
      <script src="<?php echo JS_PATH;?>ting_en/js/jquery.nivo.slider.pack.js"></script>
      <script src="<?php echo JS_PATH;?>ting_en/js/jquery.prettyPhoto.js"></script>
      <script src="<?php echo JS_PATH;?>ting_en/js/superfish.js"></script>
      <script src="<?php echo JS_PATH;?>ting_en/js/tweetMachine.js"></script>
      <script src="<?php echo JS_PATH;?>ting_en/js/tytabs.js"></script>
      <script src="<?php echo JS_PATH;?>ting_en/js/jquery.sticky.js"></script>
      <script src="<?php echo JS_PATH;?>ting_en/js/jflickrfeed.js"></script>
      <script src="<?php echo JS_PATH;?>ting_en/js/imagesloaded.pkgd.min.js"></script>
      <script src="<?php echo JS_PATH;?>ting_en/js/waypoints.min.js"></script>
      <script src="<?php echo JS_PATH;?>ting_en/js/spectrum.js"></script>
      <script src="<?php echo JS_PATH;?>ting_en/js/switcher.js"></script>
      <script src="<?php echo JS_PATH;?>ting_en/js/jquery.gmap.min.js"></script>
      <script src="<?php echo JS_PATH;?>ting_en/js/custom.js"></script>
   
<?php include template("content","footer"); ?>